/**
 * 低代码平台路由
 */
export default [
  {
    path: '/lowcode',
    meta: { requiresAuth: true },
    children: [
      {
        path: '',
        name: 'LowcodeHome',
        component: () => import('@/views/lowcode/LowcodeHome.vue'),
        meta: { title: '低代码平台' }
      },
      {
        path: 'form-designer',
        name: 'LowcodeFormDesigner',
        component: () => import('@/views/lowcode/FormDesigner.vue'),
        meta: { title: '表单设计器' }
      },
      {
        path: 'page-designer',
        name: 'LowcodePageDesigner',
        component: () => import('@/views/lowcode/PageDesigner.vue'),
        meta: { title: '页面设计器' }
      },
      {
        path: 'flow-designer',
        name: 'LowcodeFlowDesigner',
        component: () => import('@/views/lowcode/FlowDesigner.vue'),
        meta: { title: '流程设计器' }
      },
      {
        path: 'model-designer',
        name: 'LowcodeModelDesigner',
        component: () => import('@/views/lowcode/ModelDesigner.vue'),
        meta: { title: '数据模型' }
      },
      {
        path: 'component-library',
        name: 'LowcodeComponentLibrary',
        component: () => import('@/views/lowcode/ComponentLibrary.vue'),
        meta: { title: '组件库' }
      },
      {
        path: 'ai-assistant',
        name: 'LowcodeAIAssistant',
        component: () => import('@/views/lowcode/AIAssistant.vue'),
        meta: { title: 'AI助手' }
      },
      {
        path: 'templates',
        name: 'LowcodeTemplates',
        component: () => import('@/views/lowcode/Templates.vue'),
        meta: { title: '模板中心' }
      },
      {
        path: 'applications',
        name: 'LowcodeApplications',
        component: () => import('@/views/lowcode/Applications.vue'),
        meta: { title: '应用管理' }
      },
      {
        path: 'api-designer',
        name: 'LowcodeAPIDesigner',
        component: () => import('@/views/lowcode/APIDesigner.vue'),
        meta: { title: 'API接口设计器' }
      },
      {
        path: 'code-generator',
        name: 'LowcodeCodeGenerator',
        component: () => import('@/views/lowcode/CodeGenerator.vue'),
        meta: { title: '代码生成器' }
      },
      {
        path: 'quick-builder',
        name: 'LowcodeQuickBuilder',
        component: () => import('@/views/lowcode/QuickBuilder.vue'),
        meta: { title: '快速搭建向导' }
      },
      {
        path: 'component-market',
        name: 'LowcodeComponentMarket',
        component: () => import('@/views/lowcode/ComponentMarket.vue'),
        meta: { title: '组件市场' }
      },
      {
        path: 'template-market',
        name: 'LowcodeTemplateMarket',
        component: () => import('@/views/lowcode/TemplateMarket.vue'),
        meta: { title: '模板广场' }
      }
    ]
  }
]

